home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 12
/
Cream of the Crop 12 (Part II)
/
Cream of the Crop 12 (Part II).iso
/
BBS
/
EZY120_1.ZIP
/
STRUCT.ARJ
/
CLIB.ARJ
/
GETPARAM.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-09
|
350 b
|
17 lines
#include <string.h>
#include <dos.h>
char *GetParam(char *StrToFind,char *Result)
{
int SLen = strlen(StrToFind);
int Count = 1;
*Result = '\0';
while ((Count < _argc) && (!*Result)) {
if (strnicmp(StrToFind,_argv[Count],SLen) == 0) {
strcpy(Result,_argv[Count] + SLen);
}
Count++;
}
return(Result);
}